﻿@using Microsoft.AspNetCore.Components.Web
@namespace Wasm.Prerendered.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <base href="~/" />
    <component type="typeof(HeadOutlet)" render-mode="WebAssemblyPrerendered" />
</head>
<body>
    @RenderBody()

    <script src="_framework/blazor.webassembly.js" autostart="false"></script>
    <script>
        function start() {
            Blazor.start({
                logLevel: 1 // LogLevel.Debug
            }).then(function() {
                window['__aspnetcore__testing__blazor_wasm__started__'] = true;
            });
        }
    </script>

    <button id="start-blazor" onclick="start()">Start Blazor</button>
</body>
</html>
